import subprocess
import os
import time

dirname, filename = os.path.split(os.path.abspath(__file__))
command = "python3 " + dirname + "/bot.py"

while True:
	subprocess.run(command, shell = True)
	print("Process finished, restarting")
	time.sleep(10)
